package com.transcasafe.eanpay.core.cipher;

import com.transcasafe.eanpay.core.util.GsonUtil;

import static java.util.Objects.requireNonNull;


/**
 * 签名结果
 */
public class SignatureResult {

    private final String signature;


    public SignatureResult(String signature) {
        this.signature = requireNonNull(signature);
    }

    /**
     * 获取签名
     *
     * @return 签名
     */
    public String getSign() {
        return signature;
    }

    @Override
    public String toString() {
        return GsonUtil.getGson().toJson(this);
    }
}
